﻿using UnityEngine;
using System.Collections;

namespace Baiyy {
	/// <summary>
	/// 控制台。
	/// </summary>
	public static class Console {
        /// <summary>
        /// 输出调试信息。
        /// </summary>
        /// <param name="debug"></param>
        public static void Debug(string debug) {
			#if DEBUG
			UnityEngine.Debug.Log("[DEBUG] -- " + debug);
			#endif
        }

		/// <summary>
		/// 输出日志信息。
		/// </summary>
		/// <param name="info">Info.</param>
		public static void Info(string info) {
			UnityEngine.Debug.Log ("[INFO] -- " + info);
		}

		/// <summary>
		/// 输出警告信息。
		/// </summary>
		/// <param name="warning">Warning.</param>
		public static void Warning(string warning) {
			UnityEngine.Debug.LogWarning ("[WARNING] -- " + warning);
		}

		/// <summary>
		/// 输出错误信息。
		/// </summary>
		/// <param name="error">Error.</param>
		public static void Error(string error) {
			UnityEngine.Debug.LogError ("[ERROR] -- " + error);
		}
	}
}
